package com.jewelry.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.jewelry.entity.Product;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;
import java.util.Map;

/**
* @author LZL
* @description 针对表【t_product】的数据库操作Service
* @createDate 2024-03-21 20:53:04
*/
public interface ProductService extends IService<Product> {
    List<Product> selectBiaJiTuiJia();

    List<Product> selectHot();

    List<Product> selectLessStock();

    List<Product> selectLessPrice();

    Map selectProByNameByPage(Integer pageNum, Integer pageSize, String productName);

    Page<Product> getProductByCategory(Integer pId, Integer cId, Integer pageNum, Integer pageSize);
}
